package com.cmc.cloud.cmclink.doc.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * COD校验请求 VO
 *
 * @author codegen
 */
@Schema(description = "管理后台 - COD校验请求 VO")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CodCheckReqVO {

    @Schema(description = "船舶编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{CodCheckReqVO.vesselCode.notblank}")
    @Length(max = 50, message = "船舶编码支持最大长度{max}")
    private String vesselCode;

    @Schema(description = "航次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{CodCheckReqVO.voyage.notblank}")
    @Length(max = 50, message = "航次支持最大长度{max}")
    private String voyage;

    @Schema(description = "装货港", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{CodCheckReqVO.polCode.notblank}")
    @Length(max = 5, message = "装货港支持最大长度{max}")
    private String polCode;

    @Schema(description = "进出口类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{CodCheckReqVO.imExType.notblank}")
    private String imExType;
}